﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BootstrapAdmin.DataAccess.Models;

/// <summary>
/// 字典表信息
/// </summary>
[Table("ops_dict")]
public sealed class DictInfo
{
    [Key]
    public int Id { get; set; }

    [NotNull]
    [Required]
    [Display(Name = "标签")]
    public string? Category { get; set; }

    [NotNull]
    [Required]
    [Display(Name = "名称")]
    public string? Name { get; set; }

    [Display(Name = "别名")]
    public string? Alias { get; set; }

    [NotNull]
    [Required]
    [Display(Name = "代码")]
    public string? Code { get; set; }
}
